﻿@using System.Diagnostics;
@using System.Collections;
@using System.Reflection;
@using System.Runtime.Versioning;
@using NewLife.Common;
@{
    Layout = NewLife.Cube.Setting.Current.Layout;

    ViewBag.Title = "Cache列表";

    var asm = Assembly.GetExecutingAssembly();
    var att = asm.GetCustomAttribute<TargetFrameworkAttribute>();
    var ver = att.FrameworkDisplayName ?? att.FrameworkName;
}                      
        
<div class="kt-portlet kt-portlet--last kt-portlet--mobile">
    <div class="kt-portlet__head">
        <div class="kt-portlet__head-label">
                <span class="kt-portlet__head-icon">
                    <i class="la la-gear"></i>
                </span>
                <h3 class="kt-portlet__head-title">
                    Cache列表(@Cache.Count)
                </h3>
        </div>
    </div>
    <div class="kt-portlet__body" style="overflow-x:auto;">
        <table class="table table-bordered table-hover table-striped table-condensed table-responsive">
            <tr>
                <th>名称</th>
                <th>类型</th>
                <th>数值</th>
            </tr>
            @foreach (DictionaryEntry item in Cache)
            {
                <tr>
                    <td>@item.Key</td>
                    <td>@item.Value.GetType().FullName</td>
                    <td>@item.Value</td>
                </tr>
            }
        </table>
    </div>
</div>
